package com.ruoyi.project.cms.type.controller;

import com.ruoyi.framework.web.controller.BaseController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/cms/type")
public class CMSTypeController extends BaseController {
    //声明资源地址的公共前缀
    private String prefix = "cms/type";
    //声明单元方法:跳转公告类型管理页面
    @RequiresPermissions("cms:type:view")
    @GetMapping()
    public String cmsType(){
        return prefix+"/type";
    }
}